package com.onlyyou.custom.entity;

import com.onlyyou.custom.info.CustomizeInfo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Customize implements Serializable {
    private String cpu;
    private String mother;
    private String grphics;
    private String RAM;
    private String hard;
    private String heat;
    private String monitor;
    private String keyboard;
    private String mouse;
    private String service;
    public CustomizeInfo buildInfo(){
        CustomizeInfo customizeInfo = new CustomizeInfo();
        BeanUtils.copyProperties(this,customizeInfo);
        return customizeInfo;
    }

}
